package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Travel;
import cn.wolfcode.luowowo.article.domain.TravelContent;
import cn.wolfcode.luowowo.article.query.TravelQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelService {
    PageInfo<Travel> queryForList(TravelQuery qo);

    Travel getTravelById(Long id);

    TravelContent getContent(Long id);

    List<Travel> getTravelTop3ByCreatTime(Long destId);

    Long saveOrUpdate(Travel travel);

    Travel get(Long id);

    PageInfo<Travel> queryForListFromBackStage(TravelQuery qo);

    void updateState(Long id, int state);

    List<Travel> list();

    void updateRedisStatus(Travel travel);


}
